<f:view xmlns="http://www.w3.org/1999/xhtml"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:p="http://primefaces.org/ui"
        xmlns:pm="http://primefaces.org/mobile"
        contentType="text/html"
        renderKitId="PRIMEFACES_MOBILE">

<pm:page title="Mobile">
<pm:view id="status">
    <pm:header title="#{msg['hello.home.status']}">
        <f:facet name="left"><p:button value="#{msg['hello.home.back']}" icon="back" href="home.xhtml#main"/></f:facet>
    </pm:header>

    <pm:content>
        #{statusBean.showStatus()}
        <h:panelGrid columns="2" cellpadding="10">
            <h:outputText value="#{msg['hello.status.name']}:" />
            <h:outputText value="#{statusBean.user.name}" style="font-weight: bold"/>

            <h:outputText value="#{msg['hello.status.party']}:" />
            <h:outputText value="无门无派，小毛贼" style="font-weight: bold"/>

            <h:outputText value="#{msg['hello.status.top']}:" />
            <h:outputText value="1" style="font-weight: bold"/>

            <h:outputText value="#{msg['hello.status.level']}:" />
            <h:outputText value="#{statusBean.user.level}" style="font-weight: bold"/>

            <h:outputText value="#{msg['hello.status.exp']}:" />
            <h:outputText value="#{statusBean.user.exp}/#{statusBean.user.mexp}" style="font-weight: bold"/>


            <h:outputText value="#{msg['hello.status.attack']}:" />
            <h:outputText value="(#{statusBean.user.attack})" style="font-weight: bold"/>

            <h:outputText value="#{msg['hello.status.defence']}:" />
            <h:outputText value="(#{statusBean.user.defence})" style="font-weight: bold"/>

            <h:outputText value="#{msg['hello.status.luck']}:" />
            <h:outputText value="(#{statusBean.user.luck})" style="font-weight: bold"/>
        </h:panelGrid>
        <p:accordionPanel>
            <p:tab title="#{msg['hello.status.skill']}">
                <h:panelGrid columns="2" cellpadding="10">
                    <h:outputText value="高级连击" />
                    <h:outputText value="拥有30%概率攻击2次" style="font-weight: bold"/>

                    <h:outputText value="高级暴击" />
                    <h:outputText value="增加30%的暴击概率" style="font-weight: bold"/>

                    <h:outputText value="高级闪避" />
                    <h:outputText value="增加30%的闪避概率" style="font-weight: bold"/>
                </h:panelGrid>
            </p:tab>
        </p:accordionPanel>

    </pm:content>

</pm:view>
</pm:page>
</f:view>